package cn.com.gf.cmp.am;

import java.io.IOException; 
  
import org.springframework.boot.Banner; 
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; 
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
 
/**
 * Author: wnl
 * Description:根网源数据推送kafka主程序
 * Date: 2018/1/11 9:48
 */
@Configuration
@EnableConfigurationProperties
@EnableAutoConfiguration
@ComponentScan
@ImportResource("schedule.xml")
public class Application 
{
	 
	 
    public static void main( String[] args ) throws IOException
    {
    	ConfigurableApplicationContext  context=new SpringApplicationBuilder()
        									.sources(Application.class)
        									.bannerMode(Banner.Mode.OFF) 
                                            .run(args); 
    }
}
